﻿using System;
using _5E.Infrastructure.UnitOfWork;
using _5E.NHibernateRepository.Repository;
using NHibernate;
using NHibernate.SqlCommand;
using WholesaleOnline.Model;
using WholesaleOnline.Model.Repository;

namespace WholesaleOnline.Repository
{
    public class BasketRepository : RepositoryBase<WoBasket, Guid>, IBasketRepository
    {
        public BasketRepository(IUnitOfWork uow) : base(uow) { }

        public override void AppendCriteria(ICriteria criteria)
        {
            //criteria.CreateAlias("Items", "Items", JoinType.LeftOuterJoin);
           // criteria.CreateAlias("Seller", "Seller", JoinType.LeftOuterJoin);
        }
    }
}
